<div id="content">
    {switch $type}
    {case 1}
    {foreach $preject as $v}
    <div id="content-title">
        <p>{$v.title}</p>
        <a>发布时间:{$v.time|substr=0,10}</a>&nbsp;&nbsp;&nbsp;<a>截止时间：{$v.endtime|substr=0,10}</a>&nbsp;&nbsp;&nbsp;<a>举办部门：{$v.apartment}</a>
    </div>
    <div id="content-info">
        {$v.content}
      <div id="confirm"><a onclick="con(1,'{$v.id}')">个人报名</a><a style="margin-left: 10px;" onclick="con(2,'{$v.id}')">团队报名</a></div>
<!--      <div id="confirm"><a onclick="con(2,'{$v.id}')">团队报名</a></div>-->
<!--        <a  onclick="con(2,'{$v.id}')">团队报名</a>-->
    </div>
    {/foreach}
        {/case}


    {case 2}
    {foreach $notice as $v}
    <div id="content-title">
        <p>{$v.title}</p>
        <a>发布时间:{$v.time|substr=0,10}</a>
    </div>
    <div id="content-info">
        {$v.content}
    </div>
    {/foreach}
    {/case}

    {case 3}
    {foreach $question as $v}
    <div id="content-title">
        <p>{$v.title}</p>
        <a>发布时间:{$v.time|substr=0,10}</a>
    </div>
    <div id="content-info">
        {$v.content}

    </div>
    {/foreach}
    {/case}

    {/switch}

</div>

